package huawei.js2025;

import java.util.Map;
import java.util.Scanner;

/**
 * 对称美学
 */
public class Question10 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int T = sc.nextInt();
        for (int i = 0; i < T; i++) {
            int n = sc.nextInt();
            int k = sc.nextInt();
            char c = dg(n, k);
            if (c == 'R') {
                System.out.println("red");
            } else {
                System.out.println("blue");
            }
        }
    }

    private static char dg(int n, int k) {
        if (n == 1) return 'R';

        int len = (int) Math.pow(2, n - 1);
        int mid = len / 2;

        if (k < mid) {
            char c = dg(n - 1, k);
            if (c == 'R') {
                return 'B';
            } else {
                return 'R';
            }
        } else {
            return dg(n - 1, k - mid);
        }
    }
}
